// vue2 路由配置
// import VueRouter from 'vue-router'
// const router  = new VueRouter({
//   mode: 'history' // hash history,
//   routes: [
//     { path: '/home', component: () => import('@/views/Home/index.vue')}
//   ]
// })
// export default router

// vue3 路由配置
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  // history: createWebHashHistory(),
  routes: [{ path: '/login', component: () => import('@/views/Login/index.vue') }]
})

export default router
